if [ -d "infrastructure" ]; then
    rm -rf "infrastructure"
fi

cd ~
git clone https://${gitcode_username}:${gitcode_token}@gitcode.com/openUBMC/infrastructure.git infrastructure
cd infrastructure
pip3 install -r scripts/publish_pipeline/publish_conan/requirements.txt
bash scripts/publish_pipeline/publish_conan/cache-upload.sh

if [ -d "infrastructure" ]; then
    rm -rf "infrastructure"
fi